package day3.HomeWork;

/**
 * ClassName：Test14
 *
 * @Author：小鱼
 * @Create：2025-08-21 11:09
 */
public class Test14 {
    public static void main(String[] args) {
        //包子
        Bum meatBum = new Bum(2,"肉馅");
        Bum vegetableBum = new Bum(2,"蔬菜");
        //一个师傅
        Thread m = new Master("师傅",meatBum,vegetableBum);
        //三个顾客
        Thread t1 = new Cust("顾客1", meatBum);
        Thread t2 = new Cust("顾客2", vegetableBum);
        Thread t3 = new Cust("顾客3", meatBum);
        //开始买卖
        m.start();
        t1.start();
        t2.start();
        t3.start();
    }
}
